//
//  DeviceTableViewCell.m
//  AlinkDemo
//
//  Created by Vincent on 2017/10/26.
//  Copyright © 2017年 aliyun. All rights reserved.
//

#import "DeviceTableViewCell.h"

@implementation DeviceTableViewCell

- (void)setData:(NSDictionary *)data{
    NSString *nick = data[@"nick"];
    self.nameLabel.text =nick?nick:data[@"name"];
    self.statusLabel.text = [data[@"status"] integerValue]==1?@"设备在线":@"设备离线";

//    NSURL *url = [YKBusinessFramework equesGetRingPictureUrl:data[@"bid"] fid:data[@"fid"]];
//    NSLog(@"%@",data);
 
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
